package com.log.james.service;

import com.log.james.mapper.WebFlowDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

@Service
public class WebFlowService implements WebFlowDao,Serializable {
    @Autowired
    private WebFlowDao webFlowDao;

    @Override
    public Map<String, Object> getWebFlow(Date time) {
        Map<String,Object> webStream = webFlowDao.getWebFlow(time);
        return webStream;
    }

    @Override
    public int getFlowNum(Date st, Date et) {
        int flow = webFlowDao.getFlowNum(st,et);
        return flow;
    }

    @Override
    public int getLogsNum(Date st, Date et) {
        return webFlowDao.getLogsNum(st, et);
    }
}
